#include<iostream>
using namespace std;
int x, y;
int gcd(int a, int b)
{
	return b ? gcd(b, a % b) : a;
}
int main()
{
	while (cin >> x >> y) {
		int ans = x * y;
		int res = gcd(x, y);
		cout << ans / res << endl;
	}
	return 0;
}